home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / std / c++ / 229 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.5 KB

  1. Path: engnews1.Eng.Sun.COM!taumet!clamage
  2. From: JdeBP@jba.co.uk (Jonathan de Boyne Pollard)
  3. Newsgroups: comp.std.c++
  4. Subject: Re: Are all Windows programs ill-formed?
  5. Date: 1 Feb 1996 22:45:37 GMT
  6. Organization: JBA Software Products, Studley, England.
  7. Approved: clamage@eng.sun.com (comp.std.c++)
  8. Message-ID: <4eq3he$fkq@silver.jba.co.uk>
  9. References: <AE5J83na99@qsar.chem.msu.su>
  10. Reply-To: JdeBP@donor2.demon.co.uk
  11. NNTP-Posting-Host: taumet.eng.sun.com
  12. Content-Type: text
  13. X-Newsreader: TIN [version 1.2 PL2]
  14. Content-Length: 796
  15. Originator: clamage@taumet
  16.  
  17. Eugene Radchenko (eugene@qsar.chem.msu.su) wrote:
  18. | Maybe the requirements on the main() should be relaxed somehow?
  19.  
  20. A while back I submitted several proposals to clean up [basic.start.main],
  21. and one of the points that I addressed was implementations that gave `main' 
  22. a different function signature.
  23.  
  24. Under my proposal, the set of function signatures that `main' could have
  25. would be implementation defined (with the restriction that `int main()' and
  26. `int main(int, char **)' be part of that set).  This would allow
  27. implementations to define
  28.  
  29.     int main(HINSTANCE, HINSTANCE, LPSTR, int)
  30.  
  31. as an acceptable signature for `main', should they so wish.
  32.  
  33. ( The current wording of [basic.start.main] is both self-contradictory 
  34.   and ambiguous in this respect.  See the proposal for full details.  )
  35.  
  36. [ comp.std.c++ is moderated.  Submission address: std-c++@ncar.ucar.edu.
  37.   Contact address: std-c++-request@ncar.ucar.edu.  The moderation policy is
  38.   summarized in http://reality.sgi.com/employees/austern_mti/std-c++/policy.html
  39. ]
  40.